package com.neusoft.demo8;

public class StringBufferDemo {
    public static void main(String[] args) {
//        StringBuffer stringBuffer = new StringBuffer("abc");
//        stringBuffer.append("def");
//        stringBuffer.reverse();
//        System.out.println(stringBuffer);

        //在项目中如何使用(可以使用StringBuffer写动态SQL)
        //select * from emp where ename = ?
        //        StringBuffer stringBuffer = new StringBuffer("select * from emp where ename = ?");
        //        if(job != null) {
        //            stringBuffer.append(" and job = ?");
        //        }
    }
}
